const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
	transpileDependencies: true,
	lintOnSave: false,
	devServer: {
		proxy: {
			'/api': {
				// target: 'http://api-toutiao-web.itheima.net',
				target: 'http://ttapi.research.itcast.cn/',
				changeOrigin: true,
				ws: true,
				pathRewrite: {
					'^/api/': ''
				}
			}
		}
	},
})
